/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.transas.navmath;

/**
 *
 * @author amalikov
 */
public class Pos2D {
	public Pos2D(double lat, double lon) {
		this.lat = lat;
		this.lon = lon;
	}
	
	public Pos2D getPos(double course, double distance) {
		double[] latlon = NavMath.getPositionGC(lat, lon, distance, course);
		return new Pos2D(latlon[0], latlon[1]);
	}
	
	public final double lat;
	public final double lon;
}
